let aa = ['1', '2', '3', '4', '5', '6']
const layout = {
    compactBox1: {
        type: 'compact-box',
        radial: true,
        direction: 'RL',
        getId: function getId(d) {
            return d.id;
        },
        getHeight: () => {
            return 26;
        },
        getWidth: () => {
            return 26;
        },
        getVGap: () => {
            return 20;
        },
        getHGap: (d) => {
            return 40;
        },
    },
    dendrogram: {
        type: 'dendrogram',
        direction: 'TB', // H / V / LR / RL / TB / BT
        nodeSep: 36,
        rankSep: 250,
    },
    compactBox: {
        type: 'compact-box',
        direction: 'TB',
        nodeSep: 200,
        rankSep: 250,
        getHeight: function getHeight() {
            return 16;
        },
        getWidth: function getWidth() {
            return 16;
        },
        getVGap: function getVGap() {
            return 60;
        },
        getHGap: function getHGap(d) {
            if (aa.includes(d.id)) {
                return 60
            }
            if (d.id === '39') {
                return 100;
            }
            return 50;
        },
    },
    d3Force: {
        type: 'd3-force',
        collide: {
            strength: 0.14
        },
        // link: {
        //     distance: (d) => {
        //         if (d.source.id === '1') {
        //             return 400;
        //         }
        //         return 120;
        //     },
        //     strength: (d) => {
        //         if (aa.includes(d.source.id)) {
        //             return 0.9;
        //         }
        //         return 0.1;
        //     },
        //
        // },
        // manyBody: {
        //     strength: (d) => {
        //         if (aa.includes(d.id)) {
        //             return -40;
        //         }
        //         return -200;
        //     },
        // },
        nodeSize: 70
    },
    force: {
        type: 'force',
        clustering: true,
        nodeClusterBy: 'nodeType',
        clusterNodeStrength: 80,
        linkDistance: 60,
        preventOverlap: true,
        nodeSize: 120,
        nodeSpacing: 20,
        maxSpeed: 210,
    },
    forceAtlas2: {
        type: 'force-atlas2',
        preventOverlap: true,
        kr: 68,
        nodeSize: 180,
    },
    fruchterman: {
        type: 'fruchterman',
        clustering: true,
        nodeClusterBy: 'nodeType',
        gravity: 8,
        speed: 5,
        clusterGravity: 15
    },
    radial: {
        type: 'radial',
        nodeSize: 100,
        nodeSpacing: 20,
        sortBy: 'important',
        preventOverlap: true,
        sortStrength: 3.4,
        maxPreventOverlapIteration: 800,
    }
}
export default layout
